/**
 * 
 */
package defi5;

/**
 * @author Logan
 *
 */
public class Test {

	public static void main(String[] args) {

		int tmp = 1;
		
		int w = 498;
		int h = 600;
		
		Point p1 = new Point(0, 1);
		
		//		Point p2 = Boulanger.boulanger(p1.x, p1.y, w, h);
		Point p2 = new Point(306,472);
		p2.ok=true;

		while(!p1.equals(p2)) {
			tmp ++;
			p1 = Boulanger.boulanger(p1.x, p1.y, w, h);
		}
		
		System.out.println(tmp);
	}

}
